/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package rainful.client;

import com.caucho.hessian.client.HessianProxyFactory;
import rainful.DataAction;
import rainful.DataAgent;

/**
 *
 * @author Administrator
 */
public class DataKite {

    public DataAction getAction() throws Exception {
        return DataAgent.getInstance();
    }

    public DataAction getAction(String remoteURL) throws Exception {
        HessianProxyFactory factory = new HessianProxyFactory();
        return (DataAction) factory.create(DataAction.class, remoteURL);
    }
}
